/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DigimonAdventure.UserInterface;

import DigimonAdventure.Things.AbstractThings;
import javax.swing.JLabel;

/**
 *
 * @author Roxyan ™
 */
public class DigimonLabel extends JLabel{
    private AbstractThings thing;
    private boolean isBoss;

    public DigimonLabel(AbstractThings thing,boolean isboss) {
        super(thing.getImageIcon());
        isBoss = isboss;
        this.thing = thing;
        this.setName("Monster");
        init();
    }
    public AbstractThings getThing(){
        return thing;
    }
    public boolean isBoss(){return isBoss;}
    public void reDraw(){
        this.setLocation(thing.getX(),thing.getY());
        //this.setText(thing.getY()+"");
    }
    private void init(){
        
        this.setBounds(thing.getX(), thing.getY(), 20, 20);
    }
    /**
     * Method ini dijalankan saat label ini dklik<br>
     * Akan memulai pertarungan
     */
    private void thisLabelClicked(){

    }

}
